import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/bill',
  name: 'Bill',
  component: LAYOUT,
  redirect: '/bill/index',
  meta: {
    icon: 'ant-design:barcode-outlined',
    title: t('发票中心'),
    orderNo: 50,
  },
  children: [
    {
      path: 'invoicing',
      name: 'Invoicing',
      component: () => import('/@/views/bill/invoicing/CaishuiBillList.vue'),
      meta: {
        title: t('在线开票'),
        icon: 'ant-design:cloud-outlined',
        orderNo: 1,
      },
    },
  ],
};

export default dashboard;
